#ifndef __TANKMANAGER_H__
#define __TANKMANAGER_H__

#include <map>
#include <list>
#include "Tank.hpp"


class TankManager
{
	public :
	
		TankManager();
		~TankManager();
		
		void update();
		
		void createPlayerTank(const unsigned int id);
		void createNetTank(const unsigned int id);
		
		void destroyTank(const unsigned int id);
		void clearTanks();
		
		std::list<TankPtr> tanks();
		TankPtr tank(const unsigned int id);
		
	private :
	
		std::map<unsigned int,TankPtr> m_tanks;
};

#endif /* __TANKMANAGER_H__ */

